#include "MeshSubset.h"

MeshSubset::MeshSubset(char* name, EnginePointer<Material>& material, UINT primitiveType,
		               UINT64 indexStart, UINT64 indexCount, UINT64 vertexStart, UINT64 vertexCount)
{
	strcpy_s(this->name, MAX_SUBSET_NAME, name);
	this->material = material;
	this->primitiveType = primitiveType;
	this->indexStart = indexStart;
	this->indexCount = indexCount;
	this->vertexStart = vertexStart;
	this->vertexCount = vertexCount;
}

UINT64 MeshSubset::getIndexStart()
{
	return indexStart;
}

UINT64 MeshSubset::getIndexCount()
{
	return indexCount;
}

UINT64 MeshSubset::getVertexStart()
{
	return vertexStart;
}

UINT64 MeshSubset::getVertexCount()
{
	return vertexCount;
}

EnginePointer<Material> MeshSubset::getMaterial()
{
	return material;
}